.class public Lcom/estrongs/android/view/music/MusicPlayerView;
.super Landroid/widget/RelativeLayout;
.source "MusicPlayerView.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/android/view/music/MusicPlayerView$a;
    }
.end annotation


# instance fields
.field private a:Landroid/content/Context;

.field private b:Lcom/estrongs/android/view/music/MusicProgressView;

.field private c:Landroid/widget/TextView;

.field private d:Landroid/widget/TextView;

.field private e:Landroid/widget/ImageView;

.field private f:Landroid/widget/ImageView;

.field private g:Landroid/widget/ImageView;

.field private h:Landroid/view/View;

.field private i:Lcom/estrongs/android/view/music/MusicPlayerView$a;

.field private j:Les/so;

.field private k:Lcom/estrongs/android/ui/theme/b;

.field private l:Landroid/graphics/drawable/Drawable;

.field private m:Landroid/graphics/drawable/Drawable;

.field private n:Landroid/graphics/drawable/Drawable;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 1

    const/4 v0, 0x0

    .line 1
    invoke-direct {p0, p1, v0}, Lcom/estrongs/android/view/music/MusicPlayerView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1

    const/4 v0, 0x0

    .line 2
    invoke-direct {p0, p1, p2, v0}, Lcom/estrongs/android/view/music/MusicPlayerView;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 0

    .line 3
    invoke-direct {p0, p1, p2, p3}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 4
    invoke-direct {p0, p1}, Lcom/estrongs/android/view/music/MusicPlayerView;->a(Landroid/content/Context;)V

    return-void
.end method

.method private a(Landroid/content/Context;)V
    .locals 2

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->a:Landroid/content/Context;

    .line 2
    invoke-direct {p0}, Lcom/estrongs/android/view/music/MusicPlayerView;->getLayout()I

    move-result v0

    invoke-static {p1, v0, p0}, Landroid/widget/RelativeLayout;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    .line 3
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->k:Lcom/estrongs/android/ui/theme/b;

    const p1, 0x7f090191

    .line 4
    invoke-static {p0, p1}, Lcom/estrongs/android/util/p0;->a(Landroid/view/View;I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Lcom/estrongs/android/view/music/MusicProgressView;

    iput-object p1, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->b:Lcom/estrongs/android/view/music/MusicProgressView;

    const p1, 0x7f090193

    .line 5
    invoke-static {p0, p1}, Lcom/estrongs/android/util/p0;->a(Landroid/view/View;I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    iput-object p1, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->c:Landroid/widget/TextView;

    const p1, 0x7f090190

    .line 6
    invoke-static {p0, p1}, Lcom/estrongs/android/util/p0;->a(Landroid/view/View;I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/TextView;

    iput-object p1, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->d:Landroid/widget/TextView;

    const p1, 0x7f090197

    .line 7
    invoke-static {p0, p1}, Lcom/estrongs/android/util/p0;->a(Landroid/view/View;I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/ImageView;

    iput-object p1, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->e:Landroid/widget/ImageView;

    const p1, 0x7f090195

    .line 8
    invoke-static {p0, p1}, Lcom/estrongs/android/util/p0;->a(Landroid/view/View;I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/ImageView;

    iput-object p1, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->f:Landroid/widget/ImageView;

    const p1, 0x7f090194

    .line 9
    invoke-static {p0, p1}, Lcom/estrongs/android/util/p0;->a(Landroid/view/View;I)Landroid/view/View;

    move-result-object p1

    check-cast p1, Landroid/widget/ImageView;

    iput-object p1, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->g:Landroid/widget/ImageView;

    const p1, 0x7f090192

    .line 10
    invoke-static {p0, p1}, Lcom/estrongs/android/util/p0;->a(Landroid/view/View;I)Landroid/view/View;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->h:Landroid/view/View;

    .line 11
    iget-object p1, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->e:Landroid/widget/ImageView;

    invoke-virtual {p1, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 12
    iget-object p1, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->f:Landroid/widget/ImageView;

    invoke-virtual {p1, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 13
    iget-object p1, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->g:Landroid/widget/ImageView;

    invoke-virtual {p1, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 14
    iget-object p1, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->h:Landroid/view/View;

    invoke-virtual {p1, p0}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 15
    iget-object p1, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->b:Lcom/estrongs/android/view/music/MusicProgressView;

    invoke-virtual {p1, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 16
    iget-object p1, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->k:Lcom/estrongs/android/ui/theme/b;

    const v0, 0x7f06028d

    const v1, 0x7f0807e4

    invoke-virtual {p1, v1, v0}, Lcom/estrongs/android/ui/theme/b;->b(II)Landroid/graphics/drawable/Drawable;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->l:Landroid/graphics/drawable/Drawable;

    .line 17
    iget-object p1, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->k:Lcom/estrongs/android/ui/theme/b;

    const v1, 0x7f0807e3

    invoke-virtual {p1, v1, v0}, Lcom/estrongs/android/ui/theme/b;->b(II)Landroid/graphics/drawable/Drawable;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->m:Landroid/graphics/drawable/Drawable;

    .line 18
    iget-object p1, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->k:Lcom/estrongs/android/ui/theme/b;

    const v1, 0x7f0807e2

    invoke-virtual {p1, v1, v0}, Lcom/estrongs/android/ui/theme/b;->b(II)Landroid/graphics/drawable/Drawable;

    move-result-object p1

    iput-object p1, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->n:Landroid/graphics/drawable/Drawable;

    .line 19
    iget-object v0, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->g:Landroid/widget/ImageView;

    invoke-virtual {v0, p1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 20
    iget-object p1, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->e:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->n:Landroid/graphics/drawable/Drawable;

    invoke-virtual {p1, v0}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 21
    iget-object p1, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->f:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->l:Landroid/graphics/drawable/Drawable;

    invoke-virtual {p1, v0}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 22
    iget-object p1, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->g:Landroid/widget/ImageView;

    const/high16 v0, 0x43340000    # 180.0f

    invoke-static {p1, v0}, Landroidx/core/view/ViewCompat;->setRotation(Landroid/view/View;F)V

    .line 23
    iget-object p1, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->f:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->l:Landroid/graphics/drawable/Drawable;

    invoke-virtual {p1, v0}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    return-void
.end method

.method private b()V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->i:Lcom/estrongs/android/view/music/MusicPlayerView$a;

    if-eqz v0, :cond_0

    .line 2
    invoke-interface {v0}, Lcom/estrongs/android/view/music/MusicPlayerView$a;->b()V

    :cond_0
    return-void
.end method

.method private c()V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->i:Lcom/estrongs/android/view/music/MusicPlayerView$a;

    if-eqz v0, :cond_0

    .line 2
    invoke-interface {v0}, Lcom/estrongs/android/view/music/MusicPlayerView$a;->onPlay()V

    :cond_0
    return-void
.end method

.method private d()V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->i:Lcom/estrongs/android/view/music/MusicPlayerView$a;

    if-eqz v0, :cond_0

    .line 2
    invoke-interface {v0}, Lcom/estrongs/android/view/music/MusicPlayerView$a;->c()V

    :cond_0
    return-void
.end method

.method private e()V
    .locals 4

    .line 1
    invoke-static {}, Les/p00;->c()Les/p00;

    move-result-object v0

    const/4 v1, 0x1

    const-string v2, "player_pos"

    const-string v3, "music"

    invoke-virtual {v0, v2, v3, v1}, Les/p00;->a(Ljava/lang/String;Ljava/lang/String;Z)V

    .line 2
    new-instance v0, Landroid/content/Intent;

    iget-object v2, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->a:Landroid/content/Context;

    const-class v3, Lcom/estrongs/android/pop/app/PopAudioPlayer;

    invoke-direct {v0, v2, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    const-string v2, "isFromMusicGridViewPlayerView"

    .line 3
    invoke-virtual {v0, v2, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    .line 4
    iget-object v1, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->a:Landroid/content/Context;

    invoke-virtual {v1, v0}, Landroid/content/Context;->startActivity(Landroid/content/Intent;)V

    return-void
.end method

.method private getLayout()I
    .locals 1

    const v0, 0x7f0c0084

    return v0
.end method


# virtual methods
.method public a()V
    .locals 4

    .line 25
    iget-object v0, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->c:Landroid/widget/TextView;

    const-string v1, ""

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 26
    iget-object v0, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->d:Landroid/widget/TextView;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const-wide/16 v0, 0x0

    const-wide/16 v2, 0x3e8

    .line 27
    invoke-virtual {p0, v0, v1, v2, v3}, Lcom/estrongs/android/view/music/MusicPlayerView;->a(JJ)V

    .line 28
    iget-object v0, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->b:Lcom/estrongs/android/view/music/MusicProgressView;

    const v1, 0x7f0803d7

    invoke-static {v1, v0}, Lcom/estrongs/android/icon/loader/c;->a(ILandroid/widget/ImageView;)V

    return-void
.end method

.method public a(JJ)V
    .locals 1

    .line 24
    iget-object v0, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->b:Lcom/estrongs/android/view/music/MusicProgressView;

    invoke-virtual {v0, p1, p2, p3, p4}, Lcom/estrongs/android/view/music/MusicProgressView;->a(JJ)V

    return-void
.end method

.method public a(Z)V
    .locals 1

    if-eqz p1, :cond_0

    .line 29
    iget-object p1, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->f:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->m:Landroid/graphics/drawable/Drawable;

    invoke-virtual {p1, v0}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    goto :goto_0

    .line 30
    :cond_0
    iget-object p1, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->f:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->l:Landroid/graphics/drawable/Drawable;

    invoke-virtual {p1, v0}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    :goto_0
    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->f:Landroid/widget/ImageView;

    if-ne p1, v0, :cond_0

    .line 2
    invoke-direct {p0}, Lcom/estrongs/android/view/music/MusicPlayerView;->c()V

    goto :goto_0

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->e:Landroid/widget/ImageView;

    if-ne p1, v0, :cond_1

    .line 4
    invoke-direct {p0}, Lcom/estrongs/android/view/music/MusicPlayerView;->d()V

    goto :goto_0

    .line 5
    :cond_1
    iget-object v0, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->g:Landroid/widget/ImageView;

    if-ne p1, v0, :cond_2

    .line 6
    invoke-direct {p0}, Lcom/estrongs/android/view/music/MusicPlayerView;->b()V

    goto :goto_0

    .line 7
    :cond_2
    iget-object v0, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->h:Landroid/view/View;

    if-eq p1, v0, :cond_3

    iget-object v0, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->b:Lcom/estrongs/android/view/music/MusicProgressView;

    if-ne p1, v0, :cond_4

    .line 8
    :cond_3
    invoke-direct {p0}, Lcom/estrongs/android/view/music/MusicPlayerView;->e()V

    :cond_4
    :goto_0
    return-void
.end method

.method public setAuthor(Ljava/lang/String;)V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->d:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-void
.end method

.method public setMusicPath(Ljava/lang/String;)V
    .locals 3

    .line 1
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    const v1, 0x7f0803d7

    if-nez v0, :cond_1

    invoke-static {p1}, Lcom/estrongs/android/util/h0;->y1(Ljava/lang/String;)Z

    move-result v0

    if-nez v0, :cond_0

    goto :goto_0

    .line 2
    :cond_0
    new-instance v0, Les/f30;

    new-instance v2, Ljava/io/File;

    invoke-direct {v2, p1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-direct {v0, v2}, Les/f30;-><init>(Ljava/io/File;)V

    iget-object p1, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->b:Lcom/estrongs/android/view/music/MusicProgressView;

    invoke-static {v0, p1, v1}, Lcom/estrongs/android/icon/loader/c;->a(Lcom/estrongs/fs/g;Landroid/widget/ImageView;I)V

    goto :goto_1

    .line 3
    :cond_1
    :goto_0
    iget-object p1, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->b:Lcom/estrongs/android/view/music/MusicProgressView;

    iget-object v0, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->k:Lcom/estrongs/android/ui/theme/b;

    invoke-virtual {v0, v1}, Lcom/estrongs/android/ui/theme/b;->c(I)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    invoke-virtual {p1, v0}, Landroidx/appcompat/widget/AppCompatImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    :goto_1
    return-void
.end method

.method public setName(Ljava/lang/String;)V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->c:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-void
.end method

.method public setNextIvClickable(Z)V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->g:Landroid/widget/ImageView;

    invoke-virtual {v0, p1}, Landroid/widget/ImageView;->setClickable(Z)V

    return-void
.end method

.method public setOnPlayerViewListener(Lcom/estrongs/android/view/music/MusicPlayerView$a;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->i:Lcom/estrongs/android/view/music/MusicPlayerView$a;

    return-void
.end method

.method public setPlayItem(Les/so;)V
    .locals 2

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->j:Les/so;

    if-eqz p1, :cond_0

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->c:Landroid/widget/TextView;

    iget-object v1, p1, Les/so;->e:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->d:Landroid/widget/TextView;

    invoke-virtual {p0}, Landroid/widget/RelativeLayout;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {p1, v1}, Les/so;->b(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 4
    new-instance v0, Les/f30;

    new-instance v1, Ljava/io/File;

    iget-object p1, p1, Les/so;->b:Ljava/lang/String;

    invoke-direct {v1, p1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-direct {v0, v1}, Les/f30;-><init>(Ljava/io/File;)V

    iget-object p1, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->b:Lcom/estrongs/android/view/music/MusicProgressView;

    const v1, 0x7f0803d7

    invoke-static {v0, p1, v1}, Lcom/estrongs/android/icon/loader/c;->a(Lcom/estrongs/fs/g;Landroid/widget/ImageView;I)V

    :cond_0
    return-void
.end method

.method public setPreIvClickable(Z)V
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/view/music/MusicPlayerView;->e:Landroid/widget/ImageView;

    invoke-virtual {v0, p1}, Landroid/widget/ImageView;->setClickable(Z)V

    return-void
.end method
